const dbutil = require('../../../libs/MyDB');

module.exports = {
    getUserInfo: async function () {
        let users = [];
        await dbutil.multiSelect('res_user', ['user_id', 'user_name', 'user_passwd', 'user_nickname', 'user_telephone', 'user_wechat', 'user_pic_url','user_birthday','user_sex'])
            .then(
                result => {
                    users = result;
                }
            )
        return {
            code: 0,
            msg: "查询成功",
            data: users,
            count: users.length,
        }
    }
}